cmake_minimum_required(VERSION 3.10)

project(main VERSION 1.0.0)

find_package(hello REQUIRED CONFIG)
#find_package(world REQUIRED)

include_directories(${hello_INCLUDE_DIRS} )

message(WARNING "======================hello_INCLUDE_DIRS=${hello_INCLUDE_DIRS}")
message(WARNING "======================hello_LIBRARIES=${hello_LIBRARIES}")
set(CMAKE_CXX_STANDARD 11)

add_executable(${PROJECT_NAME}  main.cpp)

target_link_libraries(${PROJECT_NAME} ${hello_LIBRARIES} )

# cmake .. -DCMAKE_MODULE_PATH="/home/lhd/work/testCmake/hello" 指定Findhello.cmake 位置。